import com.lijinjiang.beautyeye.BeautyEyeLNFHelper;

import javax.swing.*;

/**
 * @ClassName Demo01
 * @Description TODO
 * @Author Li
 * @Date 2022/9/13 16:11
 * @ModifyDate 2022/9/13 16:11
 * @Version 1.0
 */
public class Demo01 {
    public static void main(String[] args) {
        try {
            BeautyEyeLNFHelper.frameBorderStyle = BeautyEyeLNFHelper.FrameBorderStyle.generalNoTranslucencyShadow;
            BeautyEyeLNFHelper.launchBeautyEyeLNF();
        } catch (Exception e) {
            e.printStackTrace();
        }
        JFrame frame = new JFrame();
        frame.setTitle("Demo01"); // 设置窗口标题
        frame.setSize(400, 300); // 设置窗口显示大小

        JTabbedPane tabbedPane = new JTabbedPane();
        JPanel panel1 = new JPanel();
        panel1.add(new JLabel("语文页"));
        tabbedPane.addTab("语文", panel1);
        JPanel panel2 = new JPanel();
        panel2.add(new JLabel("数学页"));
        tabbedPane.addTab("数学", panel2);
        JPanel panel3 = new JPanel();
        panel3.add(new JLabel("英语页"));
        tabbedPane.addTab("英语", panel3);
        tabbedPane.setFocusable(false);
        frame.add(tabbedPane);

        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // 设置窗口默认关闭操作
        frame.setLocationRelativeTo(null); // 相对屏幕居中
        frame.setVisible(true); // 设置窗口可见
    }
}
